package com.sailmi.oss.support;

import io.undertow.UndertowOptions;
import org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory;
import org.springframework.boot.web.server.WebServerFactoryCustomizer;

public class ResourceWebServerCustomizer  implements WebServerFactoryCustomizer<UndertowServletWebServerFactory> {
	@Override
	public void customize(UndertowServletWebServerFactory factory) {
		factory.addBuilderCustomizers(builder-> builder.setServerOption(UndertowOptions.ALLOW_UNESCAPED_CHARACTERS_IN_URL, Boolean.TRUE));
	}
}
